package com.tzy.for10evalue.controller;

import com.tzy.for10evalue.service.TxTestService1;
import com.tzy.for10evalue.service.TxTestService2;
import com.tzy.for10evalue.service.TxTestService3;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

/**
 * @author tzy
 * @date 2022/6/10 14:04
 */
@RestController
@Slf4j
public class TxTestController {
    @Autowired
    private TxTestService1 txTestService1;
    @Autowired
    private TxTestService2 txTestService2;
    @Autowired
    private TxTestService3 txTestService3;

    @PostConstruct
    public void test(){
        txTestService1.save();
    }
}
